/***********************************************************************\
*                                                                       *
* This file was created by Component Internal Interface Engine software *
*  Copyright(c) 2000-2012 by Krzysztof Pozniak (pozniak@ise.pw.edu.pl)  *
*                           All Rights Reserved.                        *
*                                                                       *
\***********************************************************************/

package cii_kx1_car3;

import cii_lib.*;

public class CCII_IDENTIFICATOR_INST {

  public CCII_COMPONENT _CII_IDENTIFICATOR_INST;

  private CCII_IDENTIFICATOR[] _COMP_ID;
  public CCII_IDENTIFICATOR_INST(CCII_TABLE_INDEX itab, int cidx, CCII_INTERFACE interf, CCII_COMPONENT parent) {
    _CII_IDENTIFICATOR_INST=new CCII_COMPONENT(itab,cidx,parent);
    _COMP_ID=null;
    int _cnum_;
    if(_CII_IDENTIFICATOR_INST.Number()==0) return;
    _COMP_ID = new CCII_IDENTIFICATOR[_cnum_=Math.max(itab.GetItem().Repeat,1)];
    for (int count=0; count<_cnum_; count ++)
      _COMP_ID[count]=new CCII_IDENTIFICATOR(itab,count,interf,_CII_IDENTIFICATOR_INST);
  }
  public CCII_COMPONENT CII_IDENTIFICATOR_INST() {return(_CII_IDENTIFICATOR_INST.Number()==0?null:_CII_IDENTIFICATOR_INST);};
  public CCII_IDENTIFICATOR COMP_ID(int num) {return(_COMP_ID[num].CII_IDENTIFICATOR()==null?null:_COMP_ID[num]);};
}
